<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="js/vue.js"></script>
	</head>
	<body>
		<div id="a">
			<h1>vue解析简单的数据：{{name}}  {{age}}</h1>
			<h1>vue解析对象的数据：{{person.name}}  {{person.age}}  {{person.coding()}} {{person.tostring()}}</h1>
			<h1>vue解析数组的数据：{{hobby[0]}}</h1>
			<h1>vue解析数组的数据：{{list[0].name}}</h1>
		</div>

		<script>
			var data={
				name:"ak",
				age:47,
				person:{
					name:"m4",
					age:16,
					coding:function(){
						alert(100)
					},
					tostring:function(){
						alert(this.name)
					}
				},
				hobby:["足球","篮球"],
				list:[
					{name:"jack",age:45},{name:"jack",age:45}
				]
				
			}
			
			var me={}
			
			var a={
				el:"#a",
				data(){
					return data
				},
				methods:me
			}
			new Vue(a)
		</script>
	</body>
</html>
